﻿{include file="Main/menu" /}
<div class="tab">
	<div class="tab-head">
		<strong>支付配置</strong>
		<ul class="tab-nav">
			<li {if $tab == ''}class="active"{/if} ><a href="#tab-alipay">支付宝支付</a></li>
			<li {if $tab == 'wxpay'}class="active"{/if} ><a href="#tab-wxpay">微信支付</a></li>
			<!--<li {if $tab == 'other'}class="active"{/if} ><a href="#tab-other">其他设置</a></li>-->
		</ul>
	</div>
	<div class="tab-body" style="background: #fff">
		<br />
		<div class="tab-panel {if $tab == 'alipay' || $tab == ''}active{/if}" id="tab-alipay">
			<form method="post" class="form-x" action="?type=alipay">
				<div class="am-dropdown">
					<div class="label">
						<label for="partner">合作者身份ID</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="partner" name="partner" value="{$data.partner}" size="80" placeholder="合作者身份ID" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label for="seller_id">支付宝账号</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="seller_id" name="seller_id" value="{$data.seller_id}" size="80" placeholder="支付宝账号" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label for="app_id">APPid</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="app_id" name="app_id" value="{$data.app_id}" size="80" placeholder="开方平台应用ID" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label>privatekey</label>
					</div>
					<div class="field">
						<textarea name="privatekey" class="input input-auto" rows="15" cols="80" placeholder="（支付宝私钥）去头去尾一串字符串" data-validate="required:不可为空">{$data.privatekey}</textarea>
					</div>
				</div>
				<div class="am-dropdown">
					<button class="button bg-main" type="submit">提交</button>
				</div>
			</form>
		</div>
		<div class="tab-panel {if $tab == 'wxpay'}active{/if}" id="tab-wxpay">
			<!--const APaid = '邮件中有,即`公众号APaid`';-->
			<!--const MCHID = '邮件中有,即`微信支付商户号`';-->
			<!--const KEY = 'wxpay.config.php中注释有相关链接';-->
			<!--const APPSECRET = '公众平台开发者中心设置,同样注释中有链接';-->
			<form method="post" class="form-x" action="?tab=wxpay">
				<div class="am-dropdown">
					<div class="label">
						<label for="partner">APPid</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="appid" name="appid" value="{$wxdata.appid}" size="80" placeholder="公众号APPid" required/>
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label for="seller_id">MCHID</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="mchid" name="mchid" value="{$wxdata.mchid}" size="80" placeholder="微信支付商户号" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label for="app_id">KEY</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" id="key" name="key" value="{$wxdata.key}" size="80" placeholder="商户支付密钥" data-validate="required:不可为空" />
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label>APPSECERT</label>
					</div>
					<div class="field">
						<input type="text" class="input input-auto" size="80" id="appsecert" name="appsecret" value="{$wxdata.appsecret}" placeholder="公众帐号appsecret" data-validate="required:不可为空"/>
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label>apiclient_cert证书</label>
					</div>
					<div class="field">
						<textarea name="apiclient_cert" class="input input-auto" rows="15" cols="80" placeholder="apiclient_cert证书" data-validate="required:不可为空">{$apiclient_cert}</textarea>
					</div>
				</div>
				<div class="am-dropdown">
					<div class="label">
						<label>apiclient_key证书</label>
					</div>
					<div class="field">
						<textarea name="apiclient_key" class="input input-auto" rows="15" cols="80" placeholder="apiclient_key证书" data-validate="required:不可为空">{$apiclient_key}</textarea>
					</div>
				</div>
				<div class="am-dropdown">
					<button class="button bg-main" type="submit">提交</button>
				</div>
			</form>
		</div>
	</div>
	<div class="tab-panel {if $tab == 'other'}active{/if}" id="tab-other"></div>
</div>
</div>
{include file="Main/menu_footer" /}